package com.ruoyi.backups.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * mySQL数据源配置对象 biz_mysql_backups
 * 
 * @author ruoyi
 * @date 2024-09-06
 */
public class MysqlBackups extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 数据库IP */
    @Excel(name = "数据库IP")
    private String mysqlIp;

    /** 数据库端口 */
    @Excel(name = "数据库端口")
    private String mysqlPort;

    /** 数据库名称 */
    @Excel(name = "数据库名称")
    private String databaseName;

    /** 数据库用户名 */
    @Excel(name = "数据库用户名")
    private String databaseUsername;

    /** 数据库密码 */
    @Excel(name = "数据库密码")
    private String databasePassword;

    /** 远程用户名 */
    @Excel(name = "远程用户名")
    private String sshUsername;

    /** 远程器密码 */
    @Excel(name = "远程器密码")
    private String sshPassword;

    /** 远程端口 */
    @Excel(name = "远程端口")
    private String sshPort;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setMysqlIp(String mysqlIp) 
    {
        this.mysqlIp = mysqlIp;
    }

    public String getMysqlIp() 
    {
        return mysqlIp;
    }
    public void setMysqlPort(String mysqlPort) 
    {
        this.mysqlPort = mysqlPort;
    }

    public String getMysqlPort() 
    {
        return mysqlPort;
    }
    public void setDatabaseName(String databaseName) 
    {
        this.databaseName = databaseName;
    }

    public String getDatabaseName() 
    {
        return databaseName;
    }
    public void setDatabaseUsername(String databaseUsername) 
    {
        this.databaseUsername = databaseUsername;
    }

    public String getDatabaseUsername() 
    {
        return databaseUsername;
    }
    public void setDatabasePassword(String databasePassword) 
    {
        this.databasePassword = databasePassword;
    }

    public String getDatabasePassword() 
    {
        return databasePassword;
    }
    public void setSshUsername(String sshUsername) 
    {
        this.sshUsername = sshUsername;
    }

    public String getSshUsername() 
    {
        return sshUsername;
    }
    public void setSshPassword(String sshPassword) 
    {
        this.sshPassword = sshPassword;
    }

    public String getSshPassword() 
    {
        return sshPassword;
    }
    public void setSshPort(String sshPort) 
    {
        this.sshPort = sshPort;
    }

    public String getSshPort() 
    {
        return sshPort;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mysqlIp", getMysqlIp())
            .append("mysqlPort", getMysqlPort())
            .append("databaseName", getDatabaseName())
            .append("databaseUsername", getDatabaseUsername())
            .append("databasePassword", getDatabasePassword())
            .append("sshUsername", getSshUsername())
            .append("sshPassword", getSshPassword())
            .append("sshPort", getSshPort())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
